<template>
  <div class="" style="min-width: 1400px">
    <nav-bar></nav-bar>
    <div class="profile_img">
      <div class="touxiang">
        <el-row class="demo-avatar demo-basic">
          <el-col :span="12">
            <div class="demo-basic--circle">
              <div class="block">
                <el-avatar :size="100" :src="user.user_image"></el-avatar>
              </div>
            </div>
          </el-col>
        </el-row>
      </div>
      <div class="q">
        <div>{{ user.user_nickname }}</div>
        <span>关注{{ gz }}</span> |
        <span>粉丝{{ fs }}</span>
      </div>
    </div>

    <router-view
      style="border-bottom: 3px solid rgb(238, 238, 238)"
    ></router-view>
    <footer>
      <div class="footer_div1">
        <ul>
          <li><a href="">帮助中心</a></li>
          <li><a href="">留言反馈</a></li>
          <li><a href="">商务合作</a></li>
        </ul>
      </div>
      <div class="footer_div2">
        <div>
          备案号：粤B2-20030218号-2 ICP证号：粤B2-20030218 Copyright © 2020
          <img
            src="http://static-c.pocoimg.cn/project/poco_new_pc/prod/online/image/widget/poco_footer_simple/i/logo_down_c6789b4.jpg"
            alt=""
          />
          <img
            src="http://static-c.pocoimg.cn/project/poco_new_pc/prod/online/image/widget/poco_footer_simple/i/poli_8a53b90.png"
            alt=""
          />
          粤公网安备 44010402000060号
          <br />网违法和不良信息举报电话：020-89899291 举报邮箱：network@poco.cn
          增值电信经营许可证 不良信息举报中心
        </div>
        <div class="footer_div3">
          <ul>
            <li><span class="iconfont icon-ai-ios"></span></li>
            <li><span class="iconfont icon-android-fill"></span></li>
            <li><span class="iconfont icon-weibo"></span></li>
            <li><span class="iconfont icon-weixin"></span></li>
          </ul>
        </div>
      </div>
    </footer>
  </div>
</template>

<script>
import { getUser } from "@/network/user.js";
import { getConcern } from "@/network/user.js";
import navBar from "@/components/navBa.vue";
export default {
  components: {
    navBar,
  },
  data() {
    return {
      fs: '',
      gz: '',
      user: {
        user_nickname: "",
        user_image: "",
      },
      activeName: "second",
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
  },
  mounted() {
    getUser(1).then((res) => {
      // console.log(res.data);
      this.user = res.data;
    });
    getConcern(1).then((res) => {
      this.gz = res.data[0][0].gz
      this.fs = res.data[1][0].fs
    });
  },
};
</script>
<style scoped lang="less">
.profile_img {
  width: 100%;
  height: 420px;
  background-color: rgba(0, 0, 0, 0.2);
  background-image: url("http://static-c.pocoimg.cn/project/poco_new_pc/prod/online/image/image/center-default-cover_6567b22.png");
  .touxiang {
    width: 100px;
    height: 100px;
    position: relative;
    left: 100px;
    top: 270px;
  }
  .q {
    width: 250px;
    height: 100px;
    line-height: 40px;
    position: relative;
    top: 180px;
    left: 150px;
    color: white;
    div {
      font-size: 25px;
    }
  }
}

footer {
  float: left;
  position: absolute;
  width: 100%;
  height: 110px;
  background-color: white;
  .footer_div1 {
    ul {
      margin-left: 100px;
      li {
        font-size: 14px;
        list-style: none;
        float: left;
        margin: 10px 10px;
        a {
          text-decoration: none;
          color: black;
        }
      }
    }
  }
  .footer_div2 {
    width: 100%;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 50px;
    left: -50px;
    img {
      width: 15px;
    }
    div {
      width: 700px;
      position: relative;
      line-height: 20px;
      left: 150px;
    }
  }
  .footer_div3 {
    width: 100px;
    margin: -50px 500px;
    ul {
      list-style: none;
      padding-left: 300px;
      li {
        float: left;
        padding: 0px 30px;
        span {
          font-size: 20px;
        }
      }
    }
  }
}
</style>